import 'package:catguard/http/request.dart';

///
/// 接口工具
///
class Api {
  //检查版本更新
  static checkVersion(data) => Request.get("/api.php/index/app/newversion", data: data);

  //注册
  static register(data) => Request.post("/api.php/user/login/register", data: data);

  //登录
  static login(data) => Request.post("/api.php/user/login/login", data: data);

  //修改密码
  static updatePassword(data) => Request.post("/api.php/user/user/updatePassword", data: data);

  //退出登录
  static logout() => Request.post("/api.php/user/user/logout");

  //获取用户信息
  static getUserInfo() => Request.post("/api.php/user/user/userInfo");

  //消息列表
  static messageList(data) => Request.post("/api.php/user/message/index",data:data);

}
